]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
GDBus: restore non-fatality of name acquisition error
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Sat, 12 Nov 2011 23:37:47 +0000 (00:37 +0100)
committerColin Walters <walters@verbum.org>
Tue, 15 Nov 2011 14:19:19 +0000 (09:19 -0500)
commit 5350302b09ddbbfa98091a943ae878c9aaf9eb6e dropped the possibility
to make a dbus name acquisition failure non-fatal.
Btw, it has also overriden the name in the error message.

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Signed-off-by: Colin Walters <walters@verbum.org>
https://bugzilla.gnome.org/show_bug.cgi?id=663941

src/main.c

index 81cdce94a855c4831134cc7cc2ca9e1a9d9f87ea..42d1446798907d75c4872ef05f9c5c14ea4195c8 100644 (file)
@@ -58,7 +58,9 @@ shell_dbus_acquire_name (GDBusProxy *bus,
                                                        NULL, /* cancellable */
                                                        &error)))
     {
-      g_printerr ("failed to acquire org.gnome.Shell: %s\n", error->message);
+      g_printerr ("failed to acquire %s: %s\n", name, error->message);
+      if (!fatal)
+        return;
       exit (1);
     }
   g_variant_get (request_name_variant, "(u)", request_name_result);